.class public Lcom/instagram/android/explore/a;
.super Lcom/instagram/e/b/d;
.source "ExplorePeopleDialog.java"

# interfaces
.implements Lcom/instagram/android/explore/p;


# instance fields
.field private Z:Lcom/instagram/android/a/aa;

.field private aa:Landroid/widget/ListView;

.field private ab:Lcom/instagram/android/explore/j;

.field private ac:Landroid/widget/ViewSwitcher;

.field private ad:Landroid/widget/TextView;

.field private ae:Landroid/widget/TextView;

.field private af:Lcom/instagram/android/d/j/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/f",
            "<",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/instagram/e/b/d;-><init>()V

    .line 52
    new-instance v0, Lcom/instagram/android/explore/b;

    invoke-direct {v0, p0}, Lcom/instagram/android/explore/b;-><init>(Lcom/instagram/android/explore/a;)V

    iput-object v0, p0, Lcom/instagram/android/explore/a;->af:Lcom/instagram/android/d/j/f;

    return-void
.end method

.method private Y()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 148
    new-instance v0, Lcom/instagram/android/a/ae;

    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/a/ae;-><init>(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/a/ae;->a(Landroid/support/v4/app/aj;)Lcom/instagram/android/a/ae;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/instagram/android/a/ae;->b(Z)Lcom/instagram/android/a/ae;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/instagram/android/a/ae;->a(Z)Lcom/instagram/android/a/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/a/ae;->a()Lcom/instagram/android/a/aa;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/explore/a;->Z:Lcom/instagram/android/a/aa;

    .line 154
    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->v()Landroid/view/View;

    move-result-object v0

    const v1, 0x102000a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 155
    instance-of v1, v0, Landroid/widget/ListView;

    if-nez v1, :cond_1

    .line 156
    if-nez v0, :cond_0

    .line 157
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "Your content must have a ListView whose id attribute is \'android.R.id.list\'"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 161
    :cond_0
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "Content has view with id attribute \'android.R.id.list\' that is not a ListView class"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 165
    :cond_1
    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/instagram/android/explore/a;->aa:Landroid/widget/ListView;

    .line 166
    iget-object v0, p0, Lcom/instagram/android/explore/a;->aa:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/instagram/android/explore/a;->Z:Lcom/instagram/android/a/aa;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 168
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 169
    invoke-virtual {v0}, Lcom/facebook/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 170
    invoke-direct {p0, v0}, Lcom/instagram/android/explore/a;->a(Lcom/facebook/a/b;)V

    .line 206
    :goto_0
    return-void

    .line 172
    :cond_2
    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->v()Landroid/view/View;

    move-result-object v1

    sget v2, Lcom/facebook/aw;->button_connect_facebook:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/explore/f;

    invoke-direct {v2, p0, v0}, Lcom/instagram/android/explore/f;-><init>(Lcom/instagram/android/explore/a;Lcom/facebook/a/b;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/explore/a;)Lcom/instagram/android/a/aa;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/explore/a;->Z:Lcom/instagram/android/a/aa;

    return-object v0
.end method

.method private a(Lcom/facebook/a/b;)V
    .locals 7
    .parameter

    .prologue
    .line 209
    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->switcher_fb:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ViewSwitcher;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ViewSwitcher;->setDisplayedChild(I)V

    .line 211
    new-instance v0, Lcom/instagram/android/explore/h;

    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->u()Landroid/support/v4/app/aj;

    move-result-object v3

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/instagram/android/explore/a;->af:Lcom/instagram/android/d/j/f;

    move-object v1, p0

    move-object v6, p1

    invoke-direct/range {v0 .. v6}, Lcom/instagram/android/explore/h;-><init>(Lcom/instagram/android/explore/a;Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;Lcom/facebook/a/b;)V

    .line 225
    invoke-virtual {v0}, Lcom/instagram/android/d/e/aj;->g()V

    .line 226
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/explore/a;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/instagram/android/explore/a;->e(I)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/explore/a;Lcom/facebook/a/b;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/instagram/android/explore/a;->a(Lcom/facebook/a/b;)V

    return-void
.end method

.method private e(I)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x0

    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 131
    iget-object v3, p0, Lcom/instagram/android/explore/a;->ad:Landroid/widget/TextView;

    if-nez p1, :cond_0

    move v0, v1

    :goto_0
    invoke-virtual {v3, v4, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    .line 132
    iget-object v0, p0, Lcom/instagram/android/explore/a;->ae:Landroid/widget/TextView;

    if-ne p1, v1, :cond_1

    :goto_1
    invoke-virtual {v0, v4, v1}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    .line 134
    iget-object v0, p0, Lcom/instagram/android/explore/a;->ac:Landroid/widget/ViewSwitcher;

    invoke-virtual {v0, p1}, Landroid/widget/ViewSwitcher;->setDisplayedChild(I)V

    .line 135
    return-void

    :cond_0
    move v0, v2

    .line 131
    goto :goto_0

    :cond_1
    move v1, v2

    .line 132
    goto :goto_1
.end method


# virtual methods
.method public X()V
    .locals 1

    .prologue
    .line 138
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/instagram/android/explore/a;->e(I)V

    .line 139
    return-void
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 64
    sget v0, Lcom/facebook/ax;->dialog_explore_people:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 65
    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 230
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 231
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 232
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    .line 234
    :cond_0
    invoke-super {p0, p1, p2, p3}, Lcom/instagram/e/b/d;->a(IILandroid/content/Intent;)V

    .line 235
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 70
    invoke-super {p0, p1}, Lcom/instagram/e/b/d;->a(Landroid/os/Bundle;)V

    .line 71
    const/4 v0, 0x2

    sget v1, Lcom/facebook/bb;->IgDialog:I

    invoke-virtual {p0, v0, v1}, Lcom/instagram/android/explore/a;->a(II)V

    .line 72
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 96
    sget v0, Lcom/facebook/aw;->button_close:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/explore/c;

    invoke-direct {v2, p0}, Lcom/instagram/android/explore/c;-><init>(Lcom/instagram/android/explore/a;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 103
    sget v0, Lcom/facebook/aw;->explore_people_switcher_main:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ViewSwitcher;

    iput-object v0, p0, Lcom/instagram/android/explore/a;->ac:Landroid/widget/ViewSwitcher;

    .line 104
    sget v0, Lcom/facebook/aw;->button_recommended:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/explore/a;->ad:Landroid/widget/TextView;

    .line 105
    sget v0, Lcom/facebook/aw;->button_friends:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/explore/a;->ae:Landroid/widget/TextView;

    .line 107
    if-eqz p2, :cond_0

    const-string v0, "last_displayed_tab"

    invoke-virtual {p2, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    :goto_0
    invoke-direct {p0, v0}, Lcom/instagram/android/explore/a;->e(I)V

    .line 111
    iget-object v0, p0, Lcom/instagram/android/explore/a;->ad:Landroid/widget/TextView;

    new-instance v1, Lcom/instagram/android/explore/d;

    invoke-direct {v1, p0}, Lcom/instagram/android/explore/d;-><init>(Lcom/instagram/android/explore/a;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 118
    iget-object v0, p0, Lcom/instagram/android/explore/a;->ae:Landroid/widget/TextView;

    new-instance v1, Lcom/instagram/android/explore/e;

    invoke-direct {v1, p0}, Lcom/instagram/android/explore/e;-><init>(Lcom/instagram/android/explore/a;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 125
    new-instance v0, Lcom/instagram/android/explore/j;

    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/explore/a;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    move-object v3, p1

    move-object v4, p0

    move-object v5, p0

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/explore/j;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Landroid/view/View;Lcom/instagram/b/d;Lcom/instagram/android/explore/p;)V

    iput-object v0, p0, Lcom/instagram/android/explore/a;->ab:Lcom/instagram/android/explore/j;

    .line 127
    invoke-direct {p0}, Lcom/instagram/android/explore/a;->Y()V

    .line 128
    return-void

    :cond_0
    move v0, v1

    .line 107
    goto :goto_0
.end method

.method public c(Landroid/os/Bundle;)Landroid/app/Dialog;
    .locals 3
    .parameter

    .prologue
    const/4 v2, -0x1

    .line 88
    invoke-super {p0, p1}, Lcom/instagram/e/b/d;->c(Landroid/os/Bundle;)Landroid/app/Dialog;

    move-result-object v0

    .line 89
    invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v2, v2}, Landroid/view/Window;->setLayout(II)V

    .line 91
    return-object v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 239
    const-string v0, "explore_people_dialog"

    return-object v0
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 143
    const-string v0, "last_displayed_tab"

    iget-object v1, p0, Lcom/instagram/android/explore/a;->ac:Landroid/widget/ViewSwitcher;

    invoke-virtual {v1}, Landroid/widget/ViewSwitcher;->getDisplayedChild()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 144
    invoke-super {p0, p1}, Lcom/instagram/e/b/d;->e(Landroid/os/Bundle;)V

    .line 145
    return-void
.end method

.method public g_()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 76
    iget-object v0, p0, Lcom/instagram/android/explore/a;->ab:Lcom/instagram/android/explore/j;

    if-eqz v0, :cond_0

    .line 77
    iget-object v0, p0, Lcom/instagram/android/explore/a;->ab:Lcom/instagram/android/explore/j;

    invoke-virtual {v0}, Lcom/instagram/android/explore/j;->f()V

    .line 79
    :cond_0
    iput-object v1, p0, Lcom/instagram/android/explore/a;->ab:Lcom/instagram/android/explore/j;

    .line 80
    iput-object v1, p0, Lcom/instagram/android/explore/a;->aa:Landroid/widget/ListView;

    .line 81
    iput-object v1, p0, Lcom/instagram/android/explore/a;->Z:Lcom/instagram/android/a/aa;

    .line 82
    iput-object v1, p0, Lcom/instagram/android/explore/a;->ac:Landroid/widget/ViewSwitcher;

    .line 83
    invoke-super {p0}, Lcom/instagram/e/b/d;->g_()V

    .line 84
    return-void
.end method
